#include <stdio.h>

void Def_File_Address(char* key, char* code)
{
    int i = 0, success = 0;
    printf("Choose the option: \n");
    printf("1. Stack_key has an adress <C:/Users/Andrey/Desktop/MIPT/IT/Class/Programs/Homeworks/Stack_key.txt> \n Stack_code has an adress <C:/Users/Andrey/Desktop/MIPT/IT/Class/Programs/Homeworks/Stack_code.txt>\n");
    printf("2.Address is different.");
    scanf("%d%", i);
    while (success!=1)
    {if (i==1)
    {
        key="C:/Users/Andrey/Desktop/MIPT/IT/Class/Programs/Homeworks/Stack_key.txt";
        code="C:/Users/Andrey/Desktop/MIPT/IT/Class/Programs/Homeworks/Stack_code.txt";
        success = 1;
    }
    else
    {
        printf("Enter the adress of both key and code files");
        scanf("%s",key);
        scanf("%s", code);
        success = 1;
    }
    if ((i!=1)&&(i!=2))
        printf("Check the option! ");
    }
}

void File_transform() //creates new files
{
    FILE *f_key, *f_code;
    char *Address_key, *Address_code;
    Def_File_Address(Address_key, Address_code);
    printf("%s", Address_code);


}
